import loginService from "./loginService.js";

const userController = {
  async login(ctx, next) {
    let {username, password} = ctx.request.body;
    ctx.body = await loginService.login(username, password);
  },
}
export default userController;